using System.Windows.Forms;

namespace WinformTemplete.Common
{
    public static class DataGridViewHelper
    {
        public static void BindData<T>(DataGridView dataGridView, System.Collections.Generic.List<T> data)
        {
            dataGridView.DataSource = null;
            dataGridView.DataSource = data;
        }

        public static void RefreshData<T>(DataGridView dataGridView, System.Collections.Generic.List<T> data)
        {
            dataGridView.DataSource = null;
            dataGridView.DataSource = data;
        }
    }
} 